package Maquette.AnneeUniversitaire;

import java.awt.Color;
import java.awt.Font;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.LayoutStyle;
import javax.swing.border.BevelBorder;
import javax.swing.border.CompoundBorder;
import javax.swing.border.EtchedBorder;
import javax.swing.border.TitledBorder;

public class ConsultationFormation extends JPanel {

	/**
	 * Create the panel
	 */
	public ConsultationFormation() {
		super();
		setBorder(new TitledBorder(null, "Consultation de la formation", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Verdana", Font.BOLD, 12), null));
		setBackground(new Color(230, 230, 250));
		setFont(new Font("Verdana", Font.PLAIN, 12));

		JLabel nomDeLabel;
		nomDeLabel = new JLabel();
		nomDeLabel.setFont(new Font("@Arial Unicode MS", Font.BOLD, 12));
		nomDeLabel.setText("Nom de la formation:");

		JLabel descriptionDeLaLabel;
		descriptionDeLaLabel = new JLabel();
		descriptionDeLaLabel.setFont(new Font("@Arial Unicode MS", Font.BOLD, 12));
		descriptionDeLaLabel.setText("Description de la formation:");

		JLabel igLabel;
		igLabel = new JLabel();
		igLabel.setFont(new Font("@Arial Unicode MS", Font.PLAIN, 12));
		igLabel.setBorder(new EtchedBorder(EtchedBorder.LOWERED));
		igLabel.setText("IG");

		JLabel informatiqueEtGestionLabel;
		informatiqueEtGestionLabel = new JLabel();
		informatiqueEtGestionLabel.setFont(new Font("@Arial Unicode MS", Font.PLAIN, 12));
		informatiqueEtGestionLabel.setBorder(new EtchedBorder(EtchedBorder.LOWERED));
		informatiqueEtGestionLabel.setText("Informatique et Gestion");

		JButton okButton;
		okButton = new JButton();
		okButton.setText("OK");
		final GroupLayout groupLayout = new GroupLayout((JComponent) this);
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(156, 156, 156)
					.addComponent(okButton, GroupLayout.PREFERRED_SIZE, 60, GroupLayout.PREFERRED_SIZE)
					.addContainerGap(41, Short.MAX_VALUE))
				.addGroup(GroupLayout.Alignment.TRAILING, groupLayout.createSequentialGroup()
					.addContainerGap(31, Short.MAX_VALUE)
					.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
						.addComponent(descriptionDeLaLabel)
						.addComponent(nomDeLabel))
					.addGap(22, 22, 22)
					.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
						.addComponent(igLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
						.addComponent(informatiqueEtGestionLabel))
					.addGap(22, 22, 22))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
				.addGroup(GroupLayout.Alignment.TRAILING, groupLayout.createSequentialGroup()
					.addContainerGap()
					.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
						.addComponent(nomDeLabel)
						.addComponent(igLabel, GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE))
					.addGap(26, 26, 26)
					.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
						.addComponent(descriptionDeLaLabel)
						.addComponent(informatiqueEtGestionLabel, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 13, Short.MAX_VALUE)
					.addComponent(okButton)
					.addContainerGap())
		);
		setLayout(groupLayout);
		//
	}

}
